package com.haust.aliyunoos.config;

import org.apache.commons.lang3.StringUtils;

/**
 * @pragram: IntelliJ IDEA
 * @description:
 * @author: liuzhiheng
 * @create: 2021-11-16-11:10
 **/
public class DemoMain {

    public static void main(String[] args) {

      //  String str = "aaabbbcccdddeeefff";
      //  str = str.match(/aaa(\S*)/)[1];


        String str = "http://www.baidu.com/lzh/123/lzh/a.png";
        int index=str.indexOf("/lzh");
        String result=str.substring(index);

       // String[] lzhs = StringUtils.split(str, "lzh");
       // System.out.println(lzhs);
    }

}
